package com.llh.uua.model

import org.ktorm.entity.Entity
import org.ktorm.schema.Table
import org.ktorm.schema.int
import org.ktorm.schema.varchar


/**
 *
 *
 * Created At 2021/3/17 21:40
 * @author llh
 */
interface SysRole : Entity<SysRole> {
    companion object : Entity.Factory<SysRole>()

    val id: Int
    var roleName: String

}

object SysRoles : Table<SysRole>("sys_role") {
    val id = int("id").primaryKey().bindTo { it.id }
    val roleName = varchar("role_name").bindTo { it.roleName }
}
